package com.zzwc.vote.www.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * @author weirdor
 * @since 2018-06-06
 */
@TableName("vote_user")
public class VoteUser extends Model<VoteUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户名的id主键  自增
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 管理员用户名
     */
	@TableField("nick_name")
	private String nickName;
    /**
     * 登录密码MD5值
     */
	@TableField("open_id")
	private String openId;
	@TableField("create_time")
	private Date createTime;
	private Integer sex;
	@TableField("head_img")
	private String headImg;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getHeadImg() {
		return headImg;
	}

	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "VoteUser{" +
			"id=" + id +
			", nickName=" + nickName +
			", openId=" + openId +
			", createTime=" + createTime +
			", sex=" + sex +
			", headImg=" + headImg +
			"}";
	}
}
